#!/bin/sh
# Copyright 2007, HeadCase Humanufacturing, Inc.
CUR_PATH=/usr/local/powerpipe
CLASSPATH=$CUR_PATH/director.jar:$CUR_PATH/commons-cli-1.0.jar:$CUR_PATH/commons-logging-1.0.4.jar:$CUR_PATH/log4j-1.2.12.jar:$CUR_PATH/mysql-connector-java-3.1.13-bin.jar
LOGFILE=/var/log/lbdirector
USER=pdns
echo $CLASSPATH
sudo -u $USER -b java -classpath $CLASSPATH com.headcaselabs.lb.director.DirectorImpl -db powerpipe -dbhost localhost -dbuser powerpipe -dbpass powerpipe -polltime 3600000 2>&1> $LOGFILE
